enum Directions { // 字符串枚举需要有默认值
  Up = "UP",
  Down = "DOWN",
  Left = "LEFT",
  Right = "RIGHT",
}

console.log('Directions', Directions.Up)